
function loadimgUrl(url, imgArgName) {
  const imgUlr = import.meta.env.VITE_IMAGE_URL;
  const imgUlr2 = import.meta.env.VITE_AV_IMAGE_URL;
    //判断imgurl是否有前缀
  if (url?.slice(0, 4) == "http") {
    return url;
  } else {
    if　(imgArgName == 'aliyunImgUrl') {
      return imgUlr + url;
    }　else {
      return imgUlr2 + url;
    }
  }
}

// 行内调用此方法
export function imgUrlEvent(url, imgArgName = 'aliyunImgUrl'){
   return  loadimgUrl(url, imgArgName)
}